package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string
	Password string
}

func (u *User) Create() error {
	return DB.Create(&u).Error
}
func (u *User) GetUsernameByUser() error {
	return DB.Where("username=?", u.Username).Find(&u).Error
}
